/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
 *
 */

export function mod(n: number, m: number) {
  return ((n % m) + m) % m;
}
